package plus.xj17520.basic.util;

import java.util.Random;

/**
 * @projectName: pethome_xj
 * @package: plus.xj17520.basic.util
 * @className: RandomUtil
 * @author: XiaoJue
 * @description: TODO
 * @date: 2022/4/2 11:48
 * @version: 1.0
 */
public class KeyUtil {

        public static String keyUtils() {
            String str="0123456789";
            StringBuilder st=new StringBuilder(4);
            for(int i=0;i<4;i++){
                char ch=str.charAt(new Random().nextInt(str.length()));
                st.append(ch);
            }
            String findKey=st.toString().toLowerCase();
            return findKey;
        }
    }

